package com.mybed.crm.service;

import com.mybed.crm.pojo.dto.PageContractQueryDto;
import com.mybed.crm.pojo.pojo.Contract;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mybed.crm.pojo.vo.ContractVo;
import com.mybed.crm.result.PageResult;

/**
 * <p>
 * 合同 服务类
 * </p>
 *
 * @author kt
 * @since 2024-10-26
 */
public interface IContractService extends IService<Contract> {
    /**
     * 分页查询
     * @param pageContractQueryDto
     * @return
     */
    PageResult<ContractVo> pageContractQuery(PageContractQueryDto pageContractQueryDto);


    /**
     * 商机转为客户
     * @param id
     * @param contract
     */
    void addContracts(Long id, Contract contract);
}
